/*
 * @Author: your name
 * @Date: 2021-08-23 17:38:48
 * @LastEditTime: 2021-08-23 17:38:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /execbmp/start.c
 */
#include  <stddef.h>
#include <stdio.h>
#include <jpeglib.h>
#include "./readbitmap.h"
#include "defs.h"

#include "memory.h"
int main(int argc, char const *argv[])
{
    // caculateLoop("../data/dump_image/tmpfs");
    // jpegCompress("../data/dump_image/tmpfs/2272.jpeg","../data/dump_image/tmpfs/2272.bmp",0);
    // jpegCompress("../data/dump_image/tmpfs/2272_r.jpeg","../data/dump_image/tmpfs/2272.bmp",1);
    // jpegCompress("../data/dump_image/tmpfs/2272_m.jpeg","../data/dump_image/tmpfs/2272.bmp",1);
    // jpegDecompress("../data/dump_image/tmpfs/2272.jpeg");
    // ResidualMB * R=  caculatePicResidual( "../data/dump_image/tmpfs/2272.bmp","../data/dump_image/tmpfs/2273.bmp", PIC_MB_W,PIC_MB_H);
    // int i=0;
    // for(i=0;R[i].yuvDataResidual!=NULL;i++)
    // {
    //     printf("R.index %d  ",R[i].MBIdx);
    // }
    // printf("i= %d \n",i);
    
    // test_one_block();
    // readBlock("./block.input");
    
    //   test_similar_block();
    // test_block_residual();
//    read_main();
  
//    test_blocks();

    // test_save_bmp();
    dct_test_main();
    // compress_Block_16X16("./block.input","./tmp/block16x16.jpg");
    zilbmain();
    return 0;
}
